package com.cmc.cloud.cmclink.doc.vo.voyagebsavo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author 周贤
 * @date 2025/5/29
 */
@Schema(description = "管理后台 - bsa （base space Allocation） 从历史数据复制 参数")
@Data
@EqualsAndHashCode()
@ToString(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
public class VoyageBsaHistoryVO {

    @Schema(description = "源数据id", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "{VoyageBsaHistoryVO.originalId.NotNull}")
    private Long originalId;

    @Schema(description = "航线代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{VoyageBsaHistoryVO.laneCode.NotBlank}")
    @Length(max = 50, message = "{VoyageBsaHistoryVO.laneCode.Length}")
    private String laneCode;

    @Schema(description = "船舶代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{VoyageBsaHistoryVO.vesselCode.NotBlank}")
    @Length(max = 50, message = "{VoyageBsaHistoryVO.vesselCode.Length}")
    private String vesselCode;

    @Schema(description = "港口代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{VoyageBsaHistoryVO.polCodes.NotBlank}")
    @Length(max = 50, message = "{VoyageBsaHistoryVO.polCodes.Length}")
    private String polCodes;

    @Schema(description = "航次")
    @Length(max = 50, message = "{VoyageBsaHistoryVO.voyage.Length}")
    private String voyage;

    @Schema(description = "目标bsa数据id")
    private Long targetId;
}
